package com.newlink.building.login.mvp.model

import com.newlink.building.login.mvp.contract.Module_Login_InputNewPwdContract
import com.newlink.building.common_base.base.BaseModel
import com.newlink.building.common_base.http.Base_RetrofitHelper
import com.newlink.building.common_base.model.bean.HttpResult
import com.newlink.building.common_base.model.bean.NewKitPasswordBean
import com.newlink.building.common_base.model.bean.NewPasswordBean
import io.reactivex.Observable

class Module_Login_InputNewPwdModel : BaseModel(), Module_Login_InputNewPwdContract.Model {

    override fun sendNewPwd(
        bean: NewPasswordBean
    ): Observable<HttpResult<String?>> {
        return Base_RetrofitHelper.service.sendNewPwd(bean)
    }

    override fun sendNewKitPwd(
        token: String,
        bean: NewKitPasswordBean
    ): Observable<HttpResult<String?>> {
        return Base_RetrofitHelper.service.sendNewKitPwd(token, bean)
    }
}